﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Marbles.Web.Setup.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link href="/App_Themes/Admin/jquery-ui-1.8.9.custom.css" type="text/css" rel="stylesheet" />
    <link href="/App_Themes/Admin/Site.css" type="text/css" rel="stylesheet" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <title>Setup</title>
</head>
<body>
    <form id="frmMain" runat="server">
    <div>
        <font size="+1">Installation Settings</font>
        <div class="helpText" style="width: 800px;">
            Here is your generic installation configuration. Please ensure the correct values
            for your host are placed here as it could affect your installation.</div>
        <br />
        </div>
        <table border="0" cellpadding="2" cellspacing="0" >
            <tr>
                <td colspan="4">
                    <b>Database Connection</b>
                </td>
            </tr>
            <tr>
                <td style="white-space:nowrap;">
                    Provider:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:DropDownList ID="cDrpProvider" runat="server">
                        <asp:ListItem Value="mysql" Text="MySQL"></asp:ListItem>
                        <asp:ListItem Value="sqlserver" Text="Microsoft SQL Server"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <div class="helpText">
                        Database Type.</div>
                </td>
            </tr>
            <tr>
                <td>
                    Host:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:TextBox ID="cTxtHost" runat="server" Width="300px" />
                </td>
                <td>
                    <div class="helpText">
                        Host Address or name.</div>
                </td>
            </tr>
            <tr>
                <td>
                    Username:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:TextBox ID="cTxtUsername" runat="server" Width="200px" />
                </td>
                <td>
                    <div class="helpText">
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    Password:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:TextBox ID="cTxtPassword" TextMode="Password" runat="server" Width="200px" />
                </td>
            </tr>
            <tr>
                <td style="white-space:nowrap;">
                    Default Database:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:TextBox ID="cTxtDatabase" runat="server" Width="200px" />
                </td>
                <td>
                    <div class="helpText">
                        Name of Schema for CMS.</div>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <b>Root Account</b>
                </td>
            </tr>
            <tr>
                <td>
                    Username:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:TextBox ID="cTxtAdminUsername" runat="server" Width="200px" />
                </td>
                <td>
                    <div class="helpText">
                        The Username and Password of your Default Admin Account.</div>
                </td>
            </tr>
            <tr>
                <td>
                    Password:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:TextBox ID="cTxtAdminPassword" TextMode="Password" runat="server" Width="200px" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <b>Page Settings</b>
                </td>
            </tr>
            <tr>
                <td style="white-space:nowrap;">
                    Enable WYSIWYG
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:CheckBox ID="cChkWysiwyg" runat="server" />
                </td>
                <td>
                    <div class="helpText"></div>
                </td>
            </tr>            
            <tr>
                <td style="white-space:nowrap;">
                    Asset Directory
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:TextBox ID="cTxtResourceDirectoryRoot" runat="server" Width="400px"></asp:TextBox>
                </td>
                <td>
                    <div class="helpText">
                        Asset Root Directory.</div>
                </td>
            </tr>
            <tr><td>Module Directory</td><td>&nbsp;</td><td><asp:TextBox ID="cTxtModuleInstallationDirectory" runat="server" width="400px"></asp:TextBox></td><td><div class="helpText">Module Directory.</div></td></tr>

            <tr>
                <td style="white-space:nowrap;">
                    Template Directory
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:TextBox ID="cTxtTemplateDir" runat="server" Width="400px"></asp:TextBox>
                </td>
                <td>
                    <div class="helpText">
                        Root Directory of Templates.</div>
                </td>
            </tr>
            <tr>
                <td style="white-space:nowrap;">
                    Asset Compression:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:DropDownList ID="cDrpAssetCompression" runat="Server">
                        <asp:ListItem Value="" Text="None"></asp:ListItem>
                        <asp:ListItem Value="deflate" Text="Deflate"></asp:ListItem>
                        <asp:ListItem Value="gzip" Text="GZip"></asp:ListItem>
                    </asp:DropDownList>
                    <td>
                        <div class="helpText">
                            Enable Asset Compression.</div>
                    </td>
            </tr>
            <tr>
                <td style="white-space:nowrap;">
                    Page State Compression:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:DropDownList ID="cDrpPageStatePersister" runat="Server">
                        <asp:ListItem Value="" Text="None"></asp:ListItem>
                        <asp:ListItem Value="deflate" Text="Deflate"></asp:ListItem>
                        <asp:ListItem Value="gzip" Text="GZip"></asp:ListItem>
                    </asp:DropDownList>
                    <td>
                        <div class="helpText">
                            Enable State Compression.</div>
                    </td>
            </tr>
            <tr>
                <td style="white-space:nowrap;">
                    Page Compression:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:DropDownList ID="cDrpPageCompression" runat="Server">
                        <asp:ListItem Value="" Text="None"></asp:ListItem>
                        <asp:ListItem Value="deflate" Text="Deflate"></asp:ListItem>
                        <asp:ListItem Value="gzip" Text="GZip"></asp:ListItem>
                        <asp:ListItem Value="whitespace" Text="White Space"></asp:ListItem>
                    </asp:DropDownList>
                    <td>
                        <div class="helpText">
                            Enable Content Compression.</div>
                    </td>
            </tr>
            <tr>
                <td style="white-space:nowrap;">
                    Authentication provider:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:DropDownList ID="cDrpAuthenticationProvider" runat="Server">
                        <asp:ListItem Value="" Text="None"></asp:ListItem>
                        <asp:ListItem Value="genericprovider" Text="Database based"></asp:ListItem>
                        <asp:ListItem Value="openidprovider" Text="Open ID"></asp:ListItem>
                    </asp:DropDownList>
                    <td>
                        <div class="helpText">
                            Default Security Provider.</div>
                    </td>
            </tr>
            <tr>
                <td style="white-space:nowrap;">
                    User Form Recipient:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:TextBox ID="cTxtUserFormMailAddress" runat="server" Width="200px" />
                </td>
            </tr>
              <tr>
                <td colspan="4">
                    <b>System Health</b>
                </td>
            </tr>
            <tr>
                <td style="white-space:nowrap;">
                    Developer Mode:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:CheckBox ID="cChkDevMode" runat="server" />
                    </td><td>
                    <div class="helpText" style="width: 700px">Run in Developer Mode (Show Full Crash messages).</div>
                </td>
            </tr>
            <tr>
                <td style="white-space:nowrap;">
                    Runtime Error Mailing:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:CheckBox ID="cChkRunTimeError" runat="server" />
                    </td><td>
                    <div class="helpText" style="width: 700px">Enable functionality to Send a <br />Mail Alert on the Occurance of a Runtime Error.</div>
                </td>
            </tr>
            <tr>
                <td style="white-space:nowrap;">
                    Full Debug on Client:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:CheckBox ID="cChkShowFullDebugInfoToClient" runat="server" />
                    </td><td>
                    <div class="helpText" style="width: 700px">Show full Debug Information on Client Browser.</div>
                </td>
            </tr>
            <tr>
                <td style="white-space:nowrap;">
                    Mail Recipient:
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:TextBox ID="cTxtRunTimeRecipient" runat="server" Width="200px" />
                    </td><td>
                    <div class="helpText" style="width: 700px">Runtime Error Mail Alert Recipient.</div>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <b>Google</b>
                </td>
            </tr>
            <tr>
                <td>
                    API Key:
                </td>
                <td>
                    &nbsp;
                </td>
                <td colspan="3">
                    <asp:TextBox ID="cTxtGoogleAPIKey" Width="700px" runat="server" /><br />
                    <div class="helpText" style="width: 700px">
                        This is typically supplied by Google and is based on your Host name. If a value
                        is in here, Please do not change or remove it without first consulting your vendor.</div>
                </td>
            </tr>
        </table>
        <br />
        <asp:Button ID="cBtnSave" runat="server" Text="Save Changes" OnClick="cBtnSave_Click" />
        <br />
        <br />
        <br />
    </div>
    </form>
</body>
</html>
